package moriarty.gwt.client;

import moriarty.gwt.shared.User;


public class CurrentUser {

	static CurrentUser instance = null;
	private String currentUserEmail = null;
	private User currentUser = null;
	private boolean isMember = false;
	public static CurrentUser getInstance(){
	     if(instance == null) {
	         instance = new CurrentUser();
	      }
	      return instance;
	}
	
	protected CurrentUser(){}

	
	public boolean isMember() {
		return isMember;
	}

	public void setMember(boolean isMember) {
		this.isMember = isMember;
	}

	public String getCurrentUserEmail() {
		return currentUserEmail;
	}

	public void setCurrentUserEmail(String currentUserEmail) {
		this.currentUserEmail = currentUserEmail;
	}

	public User getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(User currentUser) {
		this.currentUser = currentUser;
	}
	
}
